package com.zt.chatgpt.openai.model.valobj;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zt
 * @Description: 用户状态枚举
 * @create: 2024-05-22 18:31
 */
@Getter
@AllArgsConstructor
public enum UserAccountStatusVO {
    AVAILABLE(0, "可用"),
    FREEZE(1, "冻结");

    private final Integer code;
    private final String info;

    public static UserAccountStatusVO getInfo(Integer code) {
        switch (code) {
            case 0:
                return UserAccountStatusVO.AVAILABLE;
            case 1:
                return UserAccountStatusVO.FREEZE;
            default:
                return UserAccountStatusVO.AVAILABLE;
        }
    }
}
